package com.jxpanda.spring.module.auth.endpoint.annotation;

import org.springframework.security.core.annotation.AuthenticationPrincipal;

import java.lang.annotation.*;

/**
 * 注解用于从 JWT 中提取phone。
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@AuthenticationPrincipal(expression = "claims['phone']")
public @interface JwtClaimsPhone {
}